import {Component} from '@angular/core';
import {NavController, NavParams} from 'ionic-angular';

import request from 'superagent';

import {Backend} from '../../providers/backend';
import {Files} from './tab-resources-files';

@Component({
  templateUrl: 'build/pages/tab-resources/tab-resources-group.html'
})
export class Group {

  static get parameters() {
    return [[NavController], [NavParams], [Backend]];
  }

  constructor(navCtrl, navParams, backend) {
    
    this.thid = navParams.get('thid');
    this.navCtrl = navCtrl;
    this.navParams = navParams;
    this.backend = backend;
   
  }
  fenzu(id) { 
    this.navCtrl.push(Files, { 'thid': this.thid ,'group':id});
    console.log(id);
  }

}
